
import {singleton} from "../js/tool.js";
import { createAlert } from "./createAlert.js";


// var myAlert = singleton(createAlert);  // 返回新函数
export var myAlert = singleton(createAlert)();  // 返回新函数 -> 创建实例